#ifndef DOCKWINDOW_H
#define DOCKWINDOW_H

#include <QQuickWindow>

class DockWindow : public QQuickWindow {
  Q_OBJECT
  QQuickItem *_dockWidget;

public:
  DockWindow(QQuickItem *dockWidget = nullptr, QWindow *parent = nullptr);

  //    // QWindow interface
  // protected:
  //    void mousePressEvent(QMouseEvent *);
  //    void mouseReleaseEvent(QMouseEvent *);
  //    void mouseDoubleClickEvent(QMouseEvent *);
  //    void mouseMoveEvent(QMouseEvent *);

  //    // QWindow interface
  // protected:
  //    void moveEvent(QMoveEvent *);

  // QWindow interface
  QQuickItem *dockWidget() const;
  void setDockWidget(QQuickItem *dockWidget);

protected:
  void resizeEvent(QResizeEvent *);
};

#endif // DOCKWINDOW_H
